/*
 * Copyright (c) 2017 zhangcm. All Rights Reserved.
 */
package com.jnzc.ocr.common.utils;

import java.lang.reflect.InvocationTargetException;

/**
 * @author zhangcm
 * @version 1.0, 2017/11/20
 */
public class BeanUtils {

    public static <T> T clone(T obj) {
        try {
            return (T) org.apache.commons.beanutils.BeanUtils.cloneBean(obj);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
